package com.kgame5.xtank3d.effect.myemitters {
import kgame5.k3d.core.obj3d.node3d.Node3D;
import kgame5.kmath.MathDG;

import com.kgame5.xtank3d.effect.MyEmitter;
import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 */
public class SuicideDustEmitter extends MyEmitter{
	
	public function SuicideDustEmitter() {
		var md:Node3D=ResourceManagerX.getInstance().getSuicideDust();
		//Factory3D.CreateSprite3D("MyMc_BloodDust");
		md.vy=MathDG.random(8,12);//14;
		md.ti.hardVO.v3d_a.y=-2;
		
		md.scale.mul(MathDG.random(4,7)*10/100);
		
		var scaleSpeed:Number=0.05;
		md.ti.hardVO.v3d_sv.fill(scaleSpeed,scaleSpeed,scaleSpeed);
		
		md.life=-1;//MathDG.random(6, 8);
		
	
		//烟自己的旋转
		md.rotY=MathDG.random(0,360);
		
		//-添加
		md_g.addChild(md);
	}
}
}
